/*
 * @Author: dazy916 dazy916@126.com
 * @Date: 2025-07-29 16:36:18
 * @LastEditors: dazy dazy916@126.com
 * @LastEditTime: 2025-09-19 16:30:25
 * @FilePath: \digitalhuman\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from 'vue'
import App from './App.vue'
import { Form, Field, Area, Popup, Cell, CellGroup, DatePicker, Tabbar, TabbarItem, Tab, Tabs, List, Overlay, Step, Steps, Icon, Divider, DropdownMenu, DropdownItem, SwipeCell, Badge, RadioGroup, Radio, Tag, Picker, Checkbox, CheckboxGroup, Button, Search, Toast, ImagePreview, CountDown, PickerGroup, TimePicker, Collapse, CollapseItem, NoticeBar, Swipe, SwipeItem, Popover, Loading, Switch, ConfigProvider, Dialog } from 'vant';
import http from "@/router/http";
import router from "@/router/router";
import "./assets/style/base.scss";
import 'vant/lib/index.css';
import './assets/style/main.scss';

import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const app = createApp(App);
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate);//pinia数据持久化
app.config.globalProperties.$http = http;
app.use(pinia)
    .use(router)
    .use(Area)
    .use(Popup)
    .use(Cell)
    .use(CellGroup)
    .use(DatePicker)
    .use(Form)
    .use(Field)
    .use(Tabbar)
    .use(TabbarItem)
    .use(Tab)
    .use(Tabs)
    .use(List)
    .use(Overlay)
    .use(Step)
    .use(Steps)
    .use(Icon)
    .use(Divider)
    .use(DropdownMenu)
    .use(DropdownItem)
    .use(SwipeCell)
    .use(Badge)
    .use(RadioGroup)
    .use(Radio)
    .use(Tag)
    .use(Picker)
    .use(Checkbox)
    .use(CheckboxGroup)
    .use(Button)
    .use(Search)
    .use(Toast)
    .use(ImagePreview)
    .use(CountDown)
    .use(PickerGroup)
    .use(TimePicker)
    .use(Collapse)
    .use(CollapseItem)
    .use(NoticeBar)
    .use(Swipe)
    .use(SwipeItem)
    .use(Popover)
    .use(Loading)
    .use(Switch)
    .use(ConfigProvider)
    .use(Dialog)
    .mount('#app')
